package com.xxl.job.executor.mvc.controller;

import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController("/job")
@EnableAutoConfiguration
public class IndexController {

    @RequestMapping("/excel/{batchId}")
    @ResponseBody
    String download(@PathVariable("batchId") String batchId) {
        return "xxl job executor running.";
    }

}